"""
话题详情页面
"""
from pom.basedriver import BaseDriver
class TopicDetailPage(BaseDriver):

    def back_to_main_page(self):
        """
        返回到主页
        :return:
        """
        android_selector = self.android_uiautomator+'resourceId("org.cnodejs.android.md:id/toolbar")' \
                                                    '.childSelector(new UiSelector().className("android.widget.ImageButton"))'
        self.driver.find_element_by_android_uiautomator(android_selector).click()